﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="FinSav003.aspx.cs" Inherits="Admin_FinSav_FinSav003" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phScript" runat="Server">
    <link href="../../Plugin/font-awesome-4.2.0/css/font-awesome.min.css" rel="stylesheet" />
    <script type="text/javascript" src="/Scripts/Controls/DatePicker/WdatePicker.js""></script>
    <style type="text/css">
        .subTable {
            border: none !important;
        }

            .subTable td {
                border: none !important;
                padding-right: 8px;
            }
    </style>
    <script type="text/javascript">
        $(function () {
            $("i[data-hid]").each(function () {
                $(this).click(function () {
                    var did = $(this).attr("data-hid");

                    $("[data-id='" + did + "']").each(function () {
                        $(this).toggle();
                    });
                });
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%; min-width: 700px">
          <div style="padding-right: 12px; display: block;">
            <table width="100%" cellspacing="2" cellpadding="2" class="AddTable" align="left">

                <tr>
                    <td width="80px">存储状态:
                    </td>
                    <td width="480px">
                        <yncWebDDL:DrpCodeTable ID="drpStatus" runat="server" Category="CTE003" ShowSelectedItem="true">
                        </yncWebDDL:DrpCodeTable>
                    </td>
                    <td></td>
                    <td width="90px"></td>
                    <td></td>
                </tr>
                <asp:Panel ID="panThirdUnit" runat="server" Visible="false">
                    <tr>
                        <td>存储机构:
                        </td>
                        <td>
                            <yncWebDDL:DrpThirdUnit ID="drpThirdUnit" runat="server" ShowSelectedItem="true">
                            </yncWebDDL:DrpThirdUnit>
                        </td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                </asp:Panel>
                <tr>
                    <td>部门:
                    </td>
                    <td>
                        <yncWebDDL:DrpCodeTable ID="drpDept" runat="server" Category="CTE001" ShowSelectedItem="true">
                        </yncWebDDL:DrpCodeTable>
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>凭证号:
                    </td>
                    <td>
                        <yncWeb:yncTextBox ID="txtDocNo" Width="180" runat="server"></yncWeb:yncTextBox>
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>

                <tr>
                    <td>日期:
                    </td>
                    <td>
                        <span style="color: #FF6600;">
                            <input class="Wdate textBox" style="width: 180px;" runat="server" readonly="readonly"
                                type="text" id="txtStartDate" clientidmode="Static" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'txtEndate\')||$dp.$DV(\'9998-12-31\')}'})" />&nbsp;&nbsp;至&nbsp;&nbsp;
                    <input class="Wdate textBox" runat="server" readonly="readonly" type="text" id="txtEndate"
                        clientidmode="Static" style="width: 180px;" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'txtStartDate\');}',maxDate:'9998-12-31'})" />
                        </span>
                        <span style="margin-left: 8px">
                            <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></span>
                    </td>
                    <td></td>
                    <td align="left">
                       <%-- <%=GetLink("SAP数据上传","A","Fin001b.aspx",null, 600, 500,false,"")%>--%>
                    </td>
                    <td width="56px" align="center">
                      <%=GetAddLink("FinSav001a.aspx", null, 700, 680)%>
                    </td>
                </tr>
            </table>
        </div>
        <yncWeb:PagnationGrid PageSize="100" ID="pageGrid" runat="server" OnOnPageIndexChange="PageChanged">
            <HeaderTemplate>
                <table width="100%" cellspacing="0" cellpadding="0" class="pagnationtable" align="left">
                    <thead>
                        <tr>
                            <th width="40px">序号
                            </th>
                            <th width="40px">SAP?</th>
                            <th width="100px">凭证盒条码
                            </th>
                            <th width="90px">外仓条形码
                            </th>
                            <th width="110px">凭证索引号1(SAP)
                            </th>
                            <th width="110px">凭证索引号2(SAP)
                            </th>
                            <th width="110px">凭证索引号3(SAP)
                            </th>
                            <th width="110px">凭证索引号4(SAP)
                            </th>
                            <th width="100px">公司代码(SAP)
                            </th>
                            <th>公司名称
                            </th>
                            <th width="100px">事业部
                            </th>
                            <th width="100px">职能部门
                            </th>
                            <th width="110px">文档日期
                            </th>
                            <th width="100px">实物存储状态
                            </th>
                            <th width="100px">实物存储地点
                            </th>
                            <th width="100px">电子存储状态
                            </th>
                            <th width="40px">确认?
                            </th>
                            
                    <th width="80px" class="center">操作
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                       <i class="fa fa fa-info-circle" style="cursor:pointer;" data-hid="d<%# Container.ItemIndex +1 %>" ></i> <%# Container.ItemIndex +1 %>
                    </td>
                    <td>
                        <%# GetYesOrNo(Eval(FinReceiptMetadata.ColumnNames.IsSAP))%>
                    </td>
                    <td>
                        <%#Eval(VReceiptExtInfoMetadata.ColumnNames.BoxNo)%>
                    </td>
                    <td>
                        <%#Eval(VReceiptExtInfoMetadata.ColumnNames.SupplierBoxNo)%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.DocumentsNo)%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.Reference)%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.ReferenceKey)%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.ReferenceTransact)%>
                    </td>
                    <td>
                        <%# Eval(BFCompanyDicMetadata.ColumnNames.CompanyCode)%>
                    </td>
                    <td>
                        <%# Eval(BFCompanyDicMetadata.ColumnNames.CompanyName)%></td>

                    <td>
                        <%#Eval(FinReceiptMetadata.ColumnNames.Division+"Str")%>
                    </td>
                    <td>
                        <%#Eval(FinReceiptMetadata.ColumnNames.FunctionDept+"Str")%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.VoucherDate)%>
                    </td>
                    <td><%# Eval(FinReceiptMetadata.ColumnNames.StorageStatus+"Str")%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.StorageLocation+"Str")%>
                    </td>
                    <td></td>
                    <td>
                        <%# GetYesOrNo(Eval(FinReceiptMetadata.ColumnNames.IsConfirmed))%>
                    </td>   
                    <td class="center action">
                        <%# GetActionUrl (Eval(FinReceiptMetadata.ColumnNames.StorageStatus).ToString(),Container.DataItem,Eval(FinReceiptMetadata.ColumnNames.BoxID).ToString().Replace("-1",""),(bool)Eval(FinReceiptMetadata.ColumnNames.IsSAP))%>
                    </td>
                   
                </tr>
                <tr class="odd"  style="display:none" data-id="d<%# Container.ItemIndex +1 %>" >
                    <td rowspan="5"></td>
                    <td rowspan="5"></td>
                    <td><b>录入人</b></td>
                    <td colspan="4">
                        <%#Eval(FinReceiptMetadata.ColumnNames.CreatedBy)%></td>
                    <td><b>冲销凭证号(SAP)</b></td>
                    <td colspan="4">
                        <%# Eval(FinReceiptMetadata.ColumnNames.RevesedBy)%></td>
                    <td><b>凭证类型(SAP)</b></td>
                    <td colspan="5">
                        <%# Eval(FinReceiptMetadata.ColumnNames.DocumentsType+"Str")%></td>
                </tr>
                <tr class="odd"  style="display:none" data-id="d<%# Container.ItemIndex +1 %>">
                    <td><b>转移记录</b></td>
                    <td colspan="4">
                        <%#Eval(FinReceiptMetadata.ColumnNames.TransferRecord)%></td>
                    <td><b>用户名(SAP)</b></td>
                    <td colspan="4">
                        <%#Eval(FinReceiptMetadata.ColumnNames.UserName)%></td>
                    <td><b>业务类型(SAP)</b></td>
                    <td colspan="5">
                        <%# Eval(FinReceiptMetadata.ColumnNames.ReferenceTransact)%></td>
                </tr>
                <tr class="odd"  style="display:none" data-id="d<%# Container.ItemIndex +1 %>">
                    <td><b>转移日期</b></td>
                    <td colspan="4"><%#Eval(FinReceiptMetadata.ColumnNames.LastTransferDate).FormatDate(ConstantValue.DateFormat)%></td>
                    <td><b>凭证日期(SAP)</b></td>
                    <td colspan="4">
                        <%# Eval(FinReceiptMetadata.ColumnNames.DocumentDate).FormatDate(ConstantValue.DateFormat)%></td>
                    <td><b>凭证系统(SAP)</b></td>
                    <td colspan="5">
                        <%# Eval(FinReceiptMetadata.ColumnNames.DocumentSystem)%></td>
                </tr>
                <tr class="odd"  style="display:none" data-id="d<%# Container.ItemIndex +1 %>">
                    <td><b>初次入库日期</b></td>
                    <td colspan="4">
                        <%#Eval(FinReceiptMetadata.ColumnNames.FirstStorageDate).FormatDate(ConstantValue.DateFormat)%></td>
                    <td><b>凭证入帐日期(SAP)</b></td>
                    <td colspan="4">
                        <%# Eval(FinReceiptMetadata.ColumnNames.PostingDate).FormatDate(ConstantValue.DateFormat)%></td>
                    <td><b>关联系统(SAP)</b></td>
                    <td colspan="5">
                        <%# Eval(FinReceiptMetadata.ColumnNames.LogicalSystem)%></td>
                </tr>
                <tr class="odd"  style="display:none" data-id="d<%# Container.ItemIndex +1 %>">
                    <td><b>文档描述</b></td>
                    <td colspan="4">
                        <%#Eval("DocDesc")%></td>
                    <td><b>备注</b></td>
                    <td colspan="10">
                        <%#Eval(FinReceiptMetadata.ColumnNames.Comments)%></td>

                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </yncWeb:PagnationGrid>
    </div>
</asp:Content>
